import 'react-native-gesture-handler';
import React from 'react';
import {NativeBaseProvider, View} from 'native-base';
import {StyleSheet} from 'react-native';

import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import {SealCuttings} from './src/views/sealCutting/newSealCutting';
import InnerPrinting from './src/views/printing/innerPrinting';
import UpDownPage from './src/views/printing/upDownPage';
import BottomNav from './src/commponents/BottomNav';
import ImgShow from './src/commponents/sealCutting/imgShow';
import AncientShow from './src/commponents/sealCutting/ancientShow';
const Stack = createNativeStackNavigator();
import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';
import UpDownImg from './src/views/printing/upDownImg';
import LongPressImg from './src/views/sealCutting/longPressImg';
import Common from './src/commponents/sealCutting/common';
import {LogBox} from 'react-native';
import {NewAcientNav} from "./src/views/ancientNew/newAcientNav";
import {NewSectNav} from "./src/commponents/sect/newSectNav";
import {NewContent} from "./src/commponents/sect/newContent";
import {NewDictionaries} from "./src/commponents/dictionaries/newDictionaries";
import {ShowOneImg} from "./src/commponents/sect/showOneImg";
//让页面上的黄色警告不显示
LogBox.ignoreAllLogs(true);
const Tab = createBottomTabNavigator();
function App() {
    return (
        <NavigationContainer>
            <NativeBaseProvider>
                <Stack.Navigator>
                    <Stack.Screen
                        name="BottomNav"
                        component={BottomNav}
                        options={{
                            headerShown: false,
                            headerTitle: '',
                        }}
                    />
                    <Stack.Screen
                        name="InnerPrinting"
                        component={InnerPrinting}
                        options={{
                            headerShown: true,
                            headerTitle: '',
                        }}
                    />
                    <Stack.Screen
                        name="UpDownPage"
                        component={UpDownPage}
                        options={{
                            headerShown: false,
                            headerTitle: '',
                        }}
                    />
                    <Stack.Screen
                        name="ImgShow"
                        component={ImgShow}
                        options={{
                            headerShown: false,
                            headerTitle: '',
                        }}
                    />
                    <Stack.Screen
                        name="AncientShow"
                        component={AncientShow}
                        options={{
                            headerShown: false,
                            headerTitle: '',
                        }}
                    />
                    <Stack.Screen
                        name="ShowOneImg"
                        component={ShowOneImg}
                        options={{
                            headerShown: false,
                            headerTitle: '',
                        }}
                    />
                    <Stack.Screen
                        name="UpDownImg"
                        component={UpDownImg}
                        options={{
                            headerShown: false,
                            headerTitle: '',
                        }}
                    />
                    <Stack.Screen
                        name="LongPressImg"
                        component={LongPressImg}
                        options={{
                            headerShown: false,
                            headerTitle: '',
                        }}
                    />
                    <Stack.Screen
                        name="Common"
                        component={Common}
                        options={{
                            headerShown: false,
                            headerTitle: '',
                        }}
                    />
                    <Stack.Screen
                        name="SealCuttings"
                        component={SealCuttings}
                        options={{
                            headerShown: false,
                            headerTitle: '',
                        }}
                    />
                    <Stack.Screen
                        name="NewAcientNav"
                        component={NewAcientNav}
                        options={{
                            headerShown: false,
                            headerTitle: '',
                        }}
                    />
                    <Stack.Screen
                        name="NewSectNav"
                        component={NewSectNav}
                        options={{
                            headerShown: false,
                            headerTitle: '',
                        }}
                    />
                    <Stack.Screen
                        name="NewContent"
                        component={NewContent}
                        options={{
                            headerShown: false,
                            headerTitle: '',
                        }}
                    />
                    <Stack.Screen
                        name="NewDictionaries"
                        component={NewDictionaries}
                        options={{
                            headerShown: false,
                            headerTitle: '',
                        }}
                    />
                </Stack.Navigator>
            </NativeBaseProvider>
        </NavigationContainer>
    );
}
export default App;

const styles = StyleSheet.create({
    container: {
        flex: 1,
        width: '100%',
        height: '100%',
        backgroundColor: '#fff',
    },
});
